package org.example;

import java.lang.reflect.InvocationTargetException;

public class Main {
    public static void main(String[] args) throws ClassNotFoundException, InvocationTargetException, InstantiationException, IllegalAccessException {
        MyApplicationContext m=new MyApplicationContext("applicationContext.xml");
        Student s1=(Student) m.getBean("s1");
        System.out.println(s1.getSno());
        System.out.println(s1.getName());
    }
}